<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
          "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>QUnit for 'x509' hex2dn, hex2rdn</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="qunit.js"></script>
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen" />
<script language="JavaScript" type="text/javascript" src="../jsrsasign-all-min.js"></script>
<script language="JavaScript" type="text/javascript" src="../src/x509-1.1.js"></script>
<script language="JavaScript" type="text/javascript" src="../src/asn1-1.0.js"></script>
<script language="JavaScript" type="text/javascript" src="../src/asn1x509-1.0.js"></script>

<script type="text/javascript">
<!--
$(document).ready(function(){

test("X509.hex2attrTypeValue", function() {
equal(X509.hex2attrTypeValue("3008060355040a0c0161"), "O=a", "O=a");
equal(X509.hex2attrTypeValue("300806035504060c0161"), "C=a", "C=a");

test("X509.hex2rdn", function() {
equal(X509.hex2rdn("310a3008060355040a0c0161"), "O=a", "O=a");
equal(X509.hex2rdn("31143008060355040a0c01613008060355040a0c0162"), "O=a+O=b", "O=a+O=b");

test("X509.hex2dn", function() {
equal(X509.hex2dn("3031310b3009060355040613025553310a3008060355040a0c01613116300906035504030c0262323009060355040b0c026231"), "/C=US/O=a/CN=b2+OU=b1", "/C=US/O=a/CN=b2+OU=b1");
});

});

});

});
-->
</script>
  
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">test markup</div>
<a href="index.html">TEST INDEX</a> |
<a href="qunit-do-x509-hex2dn.html">x509-hex2dn</a> |
<a href="qunit-do-asn1x509.html">asn1x509</a> |
<a href="qunit-do-asn1x509-multirdn.html">asn1x509-multirdn</a> |

</body>
</html>

